<%@ page language="java" import="java.util.*,com.wit.service.impl.DepartmentserviceImp,com.wit.po.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 
DepartmentserviceImp deimp=new DepartmentserviceImp();
List<Department> dlist=deimp.DepartmentList();


%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
   <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>部门管理</title>
	<link href="<%=basePath%>/style/main.css" rel="stylesheet" type="text/css" />
	<link type="text/css" rel="stylesheet"  href="<%=basePath%>/style/style.css" />
	<style>
		body{ padding:10px}
	</style>
  </head>
  
 <body>

<table width="600" border="0" align="left" cellpadding="0" cellspacing="0" class="table">
<tr>
    <td width="20%" align="center" ><span class="clientinfo_but"><a href="<%=basePath%>/Personnel/AddDepartment.jsp">新增部门</a></span></td>
    <td width="1%" align="center" >&nbsp;</td>
    <td width="28%" align="center" ><span class="clientinfo_but"><a href="DeleteDepartmentAction">删&nbsp;除</a></span></td>
    <td width="17%" align="center" >&nbsp;</td>
    <td width="17%" align="center" >&nbsp;</td>
    <td width="17%" align="center" >&nbsp;</td>
 </tr>
  <tr>
    <td><div class="mainarea">
      <div class="search">
      <form action="AddDepatemtment" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table4">
          <tr>
            <td width="28%" colspan="2" bgcolor="#BBD2F7" class="title">基本资料</td>
          </tr>
          <tr>
            <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="0">
              
              <tr>
                <td width="21%" align="right" >上级部门：</td>
                <td colspan="3" align="left" >
                 <select name="supDepart" id="supDepart">
                    <option value="N" selected>无</option>
                    <%
                      for(int i=0;i<dlist.size();i++)
                      { 
                      Department dep=dlist.get(i);
                    %>
                    <option value="<%=dep.getDepartmentId() %>"><%=dep.getDepartNameC() %></option>
                     <%
                     }
                     %>
                  </select>
                </td>
              </tr>
              <tr>
                <td align="right" >部门名(中)：</td>
                <td colspan="3" align="left" ><input type="text" name="departNameC" id="departNameC" style="width:300px"/></td>
              </tr>
              <tr>
                <td align="right" >部门名(英)：</td>
                <td colspan="3" align="left" ><input type="text" name="departNameE" id="departNameE" style="width:300px"/></td>
                </tr>
              
              <tr>
                <td align="right" >部门编号：</td>
                <td width="28%" align="left" ><input type="text" name="departmentId" id="departmentId"/></td>
                <td colspan="2" align="left" >部门简称：
                  <input type="text" name="shortName" id="shortName"/></td>
              </tr>
              <tr>
                <td align="right" >地区：</td>
                <td align="left" >
                 <select name="AreaId" id="AreaId">
                    <option value="1" selected>北京</option>
                     <option value="2" >大连</option>
                 </select>
                </td>
                <td width="12%" align="left" >邮编：</td>
                <td width="39%" align="left" ><input type="text" name="dposeCode" id="dposeCode"/></td>
              </tr>
              <tr>
                <td align="right" >电话：</td>
                <td align="left" ><input type="text" name="dphone" id="dphone"/></td>
                <td colspan="2" align="left" >传真：
                  <input type="text" name="dfax" id="dfax"/></td>
              </tr>
            </table>
                <table width="100%" border="0" cellspacing="2" cellpadding="0">
                    <tr>
                      <td width="21%" align="right" >详细地址：</td>
                      <td colspan="2" align="left" ><input type="text" name="daddress" id="daddress" style="width:300px"/></td>
                  </tr>
                
                    
                     <tr>
                      <td align="right" >电子邮箱：</td>
                      <td colspan="2" align="left" ><input type="text" name="demail" id="demail" style="width:300px"/></td>
                    </tr>
                     <tr>
                      <td align="right" >创建人姓名：</td>
                      <td width="29%" align="left" ><input type="text" name="dcrMan" id="dcrMan"/></td>
                      <td width="50%" align="left" >成立时间：
                        <input type="text" name="dcdate" id="dcdate"/></td>
                    </tr>
                       <tr>
                      <td align="right" >负责人：</td>
                      <td width="29%" align="left" ><input type="text" name="textfield3" id="textfield8" /></td>
                      <td width="50%" align="left" >负责人编号：
                        <input type="text" name="EmployeeId" id="EmployeeId" /></td>
                    </tr>
                    
                    <tr>
                      <td colspan="3" align="center">
                      <input name="input" type="submit"  value="保存"  class="btn_1"/>
                      &nbsp;
                      <input name="input" type="reset"  value="取消"  class="btn_1"/></td>
                    </tr>
              </table>
              </td>
          </tr>
        </table>
        </div>
    </div></td>
  </tr>
</table>
</form>
</body>
</html>
